package zhou.jun19;

public class Person {

	int id;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	String name;
	int age;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public boolean equals(Object s){
		  System.out.println(s.getClass().getName());
		 if(s.getClass().getName()=="zhou.jun19.Person"){
			 
			 if(this.id==((Person) s).getId()){
				 return true;
			 }else{
				 
				 return false;
			 }
			 
		 }else{
			 
			 return false;
		 }
	}
}
